import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
// 导入全局样式表
import './assets/css/global.css'

// 引入vue-axios
import axios from 'axios'
// 全局变量
import global from './Base.vue'
// 引入qs
import querystring from 'querystring'
Vue.prototype.GLOBAL = global
axios.defaults.baseURL = global.BASE_URL
// 引入mock
// import './plugins/mock' // 连接后端就注释这一行

Vue.prototype.$axios = axios
Vue.prototype.$qs = querystring

// axios.defaults.baseURL = 'http://localhost:8080'
axios.defaults.headers.post['Content-Type'] = 'application/json'

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
